package com.godofgamblers.hotelmanagementsystem.service.imp;

import com.godofgamblers.hotelmanagementsystem.mapper.Room_typeMapper;
import com.godofgamblers.hotelmanagementsystem.pojo.Room_Type;
import com.godofgamblers.hotelmanagementsystem.service.RoomTypeService;
import lombok.Data;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @author wzx
 * @date 2019/10/14 - 10:35
 */
@Service
@Transactional
@Data
public class RoomTypeServiceImp implements RoomTypeService {
    @Resource
    private Room_typeMapper roomTypeMapper;
    //根据房间类型id,找到其类型所有信息
    @Override
    public Room_Type findRoomType(Integer room_type_id) {
        return roomTypeMapper.findRoomType(room_type_id);
    }
}
